import request from '@/utils/request'
import axios from 'axios'



/**
 * 查询车辆失窃上报列表
 * @param {*} query 
 * @returns 
 */
export function listTheft(query) {
    return request({
        url: '/vehicle/theft/list',
        method: 'get',
        params: query
    })
}

/**
 * 查询车辆失窃上报详细
 * @param {*} id 
 * @returns 
 */
export function getTheft(id) {
    return request({
        url: '/vehicle/theft/' + id,
        method: 'get'
    })
}
/**
* 修改车辆失窃上报
*/
export function updateTheft(data) {
    return request({
        url: '/vehicle/theft',
        method: 'put',
        data:data
    })
}
/**
* 导出车辆失窃上报列表
*/
export function exportTheftList(data) {
    return request({
        url: '/vehicle/theft/export',
        method: 'post',
        data:data
    })
}